package net.adetech.cjg.innerservice.entity;

import java.util.LinkedList;
import java.util.List;

public class ManInfo {
    private String xm; //姓名
    private String xb; //性别 1男 2女
    private String sfzmhm; //身份证明号码
    private String csrq; //出生日期 1972-02-26 00:00:00.0
    private String lxzsxzqh;
    private String lxzsxxdz; //住址
    private String lxzsyzbm;

    private String djzsxzqh;
    private String djzsxxdz; //住址
    private String djzsyzbm;

    private String sjhm; //手机号码
    private String fzjg; //签发机关
    private String jzqx; //驾照期限
    private String yxqs; //有效期始
    private String yxqz; //有效期止
    private String cclzrq; //初次领证日期
    private String zjcx; //准驾车型
    private String gj; //国籍
    private String type = "man";
    private String lxdh;
    private String dzyx;
    private String zt;
    private String ljjf;
    private String dabh;


    public String getLjjf() {
        return ljjf;
    }

    public void setLjjf(String ljjf) {
        this.ljjf = ljjf;
    }

    private String ztmc;

    private String xbmc;


    public String getXbmc() {
        return xbmc;
    }

    public void setXbmc(String xbmc) {
        this.xbmc = xbmc;
    }

    public String getZtmc() {
        return ztmc;
    }

    public void setZtmc(String ztmc) {
        this.ztmc = ztmc;
    }

    public String getZt() {
        return zt;
    }

    public void setZt(String zt) {
        this.zt = zt;
    }

    public String getLxzsyzbm() {
        return lxzsyzbm;
    }

    public void setLxzsyzbm(String lxzsyzbm) {
        this.lxzsyzbm = lxzsyzbm;
    }

    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }


//


    public String getDzyx() {
        return dzyx;
    }

    public void setDzyx(String dzyx) {
        this.dzyx = dzyx;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getGj() {
        return gj;
    }

    public void setGj(String gj) {
        this.gj = gj;
    }

    private List<ServiceInfo> serviceList = new LinkedList<>();

    public List<ServiceInfo> getServiceList() {
        return serviceList;
    }

    public void setServiceList(List<ServiceInfo> serviceList) {
        this.serviceList = serviceList;
    }

    public String getZjcx() {
        return zjcx;
    }

    public void setZjcx(String zjcx) {
        this.zjcx = zjcx;
    }

    public String getYxq(){
        String yxq = "";
        if (this.yxqs!=null&&this.yxqs.length()>=10)
        {
            yxq +=yxqs.substring(0,10);
        }
        yxq += " 至 ";
        if (this.yxqz!=null&&this.yxqz.length()>=10)
        {
            yxq +=yxqz.substring(0,10);
        }
        return  yxq;
    }


    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    public String getXb() {
        return xb;
    }

    public void setXb(String xb) {
        this.xb = xb;
    }

    public String getSfzmhm() {
        return sfzmhm;
    }

    public void setSfzmhm(String sfzmhm) {
        this.sfzmhm = sfzmhm;
    }

    public String getCsrq() {
        if(csrq!=null&&csrq.length()>10)
        {
            return csrq.substring(0,10);
        }
        return csrq;
    }

    public void setCsrq(String csrq) {
        this.csrq = csrq;
    }

    public String getLxzsxxdz() {
        return lxzsxxdz;
    }

    public void setLxzsxxdz(String lxzsxxdz) {
        this.lxzsxxdz = lxzsxxdz;
    }

    public String getSjhm() {
        return sjhm;
    }

    public void setSjhm(String sjhm) {
        this.sjhm = sjhm;
    }

    public String getFzjg() {
        return fzjg;
    }

    public void setFzjg(String fzjg) {
        this.fzjg = fzjg;
    }

    public String getJzqx() {
        return jzqx;
    }

    public void setJzqx(String jzqx) {
        this.jzqx = jzqx;
    }

    public String getYxqs() {

        if(this.yxqs!=null&&this.yxqs.length()>=10)
        {
            return this.yxqs.substring(0,10);
        }
        else {
            return this.yxqs;
        }

    }

    public void setYxqs(String yxqs) {
        this.yxqs = yxqs;
    }

    public String getYxqz() {
        if(this.yxqz!=null&&this.yxqz.length()>=10)
        {
            return this.yxqz.substring(0,10);
        }
        else {
            return this.yxqz;
        }
    }

    public void setYxqz(String yxqz) {
        this.yxqz = yxqz;
    }

    public String getCclzrq() {
        if(cclzrq!=null&&cclzrq.length()>10)
        {
            return cclzrq.substring(0,10);
        }

        return cclzrq;
    }

    public void setCclzrq(String cclzrq) {
        this.cclzrq = cclzrq;
    }

    public String getLxzsxzqh() {
        return lxzsxzqh;
    }

    public void setLxzsxzqh(String lxzsxzqh) {
        this.lxzsxzqh = lxzsxzqh;
    }

    public String getXzqhSheng()
    {
        if(this.djzsxzqh!=null&&this.djzsxzqh.length()==6)
        {
            return this.djzsxzqh.substring(0,2)+"0000";
        }
        else {
            return null;
        }
    }
    public String getXzqhShi()
    {
        if(this.djzsxzqh!=null&&this.djzsxzqh.length()==6)
        {
            return this.djzsxzqh.substring(0,4)+"00";
        }
        else {
            return null;
        }
    }

    public String getDabh() {
        return dabh;
    }


    public String getDjzsxzqh() {
        return djzsxzqh;
    }

    public void setDjzsxzqh(String djzsxzqh) {
        this.djzsxzqh = djzsxzqh;
    }

    public String getDjzsxxdz() {
        return djzsxxdz;
    }

    public void setDjzsxxdz(String djzsxxdz) {
        this.djzsxxdz = djzsxxdz;
    }

    public String getDjzsyzbm() {
        return djzsyzbm;
    }

    public void setDjzsyzbm(String djzsyzbm) {
        this.djzsyzbm = djzsyzbm;
    }

    public void setDabh(String dabh) {
        this.dabh = dabh;
    }
}
